package frogFarm;

public class MaleFrog extends Frog{
	
	public Frog breed(FemaleFrog fF, FrogGame game){
		boolean male = false;
		int randNum = (int) (Math.random() * 2);
		
		if (randNum > 1){
			male = true;
		}
		
		
		if (male){
			MaleFrog tbd = new MaleFrog();
			tbd.setName(game.getUserInput("Enter your new male frog's name"));
			tbd.setColor1(getColor1());
			tbd.setColor2(fF.getColor2());
			tbd.setAction("Sleeping");
			
			if (tbd.getColor1() == tbd.getColor2()){
				tbd.setDecoration("solid");
			} else {
				randNum = (int) (Math.random() * 2);
				if (randNum > 1){
					tbd.setDecoration("striped");
				} else {
					tbd.setDecoration("polka-dotted");
				}
			}
			return tbd;
			
		
		
		}else{
			FemaleFrog tbd = new FemaleFrog();
			tbd.setName(game.getUserInput("Enter your new female frog's name"));
			tbd.setColor1(getColor1());
			tbd.setColor2(fF.getColor2());
			tbd.setAction("Sleeping");
			
			if (tbd.getColor1() == tbd.getColor2()){
				tbd.setDecoration("solid");
			} else {
				randNum = (int) (Math.random() * 2);
				if (randNum > 1){
					tbd.setDecoration("striped");
				} else {
					tbd.setDecoration("polka-dotted");
				}
			}
			return tbd;
			
		}
		//Frog  = new Frog();
	}
		

	
	

}
